<template>
    <div class="boxmain">
      <div class="announcement">
        <h1 class="title">| {{infodata.title}}</h1>
        <el-row :gutter="30">
          <el-col :span="16" class="rongyumain">
                  <el-carousel :interval="3000" type="card" height="300px" arrow="always" indicator-position="none">
                    <el-carousel-item>
                      <img src="http://img3.tqcaifu.com/img/rongyu1.png" alt="荣誉证书">
                    </el-carousel-item>
                    <el-carousel-item>
                      <img src="http://img3.tqcaifu.com/img/rongyu2.png" alt="荣誉证书">
                    </el-carousel-item>
                    <el-carousel-item>
                      <img src="http://img3.tqcaifu.com/img/rongyu1.png" alt="荣誉证书">
                    </el-carousel-item>
                    <!-- <el-carousel-item>
                      <img src="http://img3.tqcaifu.com/img/rongyu3.png" alt="">
                    </el-carousel-item>
                    <el-carousel-item>
                      <img src="http://img3.tqcaifu.com/img/rongyu4.png" alt="">
                    </el-carousel-item> -->
                  </el-carousel>
          </el-col>
          <el-col :span="8">
              <div class="heard">
                 <img src="http://img3.tqcaifu.com/img/index-10.png" alt="观市场变换，抓住最佳投资时机">
                 <div class="tianqindongtai">
                   <p>{{infodata.detail5}}</p>
                   <h1>天沁动态</h1>
                   <h2>观市场变换，抓住最佳投资时机</h2>
                   <h3><nuxt-link target="_blank" to="/about" rel="nofollow">查看更多 ></nuxt-link></h3>
                 </div>
              </div>
              <div class="newslist">
                 <ul>
                  <li v-for="(item,index) in newbox1" :key="index" v-if="index < 6" class="">
                    <nuxt-link target="_blank" :to="'/post/' + item.pid"><span>{{item.name}}</span></nuxt-link>
                   <span class="time">{{item.createtime.slice(0,10)}}</span>
                  </li>  
                </ul>
              </div>
          </el-col>
        </el-row>

    </div>
    </div>
</template>
<script>
var inter;
export default {
  data(){
    return{
      leftnum:0
    }
  },
  props: {
    infodata: {},
    newbox1:{
      type:Array,
      default:function(){
        return {}
      }
    }
  },
  methods:{
    gonewsbox(val){
        this.$router.push(val)
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.boxmain{
  width: 100%;
  background: white;
}
.rongyumain img{
   display: inline-block;
  height: 260px;
  width: 374px;
  transition: all 1s;
  z-index: 99;
}
.rongyumain{
  margin-top: 20px;
}
.rongyumain img:hover{
  transform: scale(1.04)
}
/* .button{
  position: absolute;
  height: 100px;
  width: 30px;
  z-index: 99;
  top: 40%;
} */
/* .pre{
transform:rotate(180deg);
-ms-transform:rotate(180deg); 	
-moz-transform:rotate(180deg); 
-webkit-transform:rotate(180deg); 
-o-transform:rotate(180deg); 	
left: 10px;
}
.next{
  right: 10px;
} */
.tianqindongtai h1{
  font-size: 16px;
  font-weight: bolder;
}
.tianqindongtai h2{
  font-size: 14px;
  margin-top: 6px;
}
.tianqindongtai h3{
  text-align: right;
  margin-top: 10px;
}
.tianqindongtai h3 a{
  transition: all 1s;
}
.tianqindongtai h3 a:hover{
   color: #cd9c54;
   font-size: 18px;
}
.scollbox{
  width: 732px;
  height: 240px;
  overflow: hidden;
  margin: 30px auto 0;
  position: relative;
}
.rongyu {
  width: 1464px;
  height: 240px;    
  overflow: hidden;
  position: absolute;
}
.rongyu img{
  display: inline-block;
  margin: 0 10px;
  height: 240px;
  width: 346px;
}
.touyannewslist1 h1{
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  height: 38px;
  line-height: 38px;
}
.touyannewslist1 h1 span{
  color: #cd9c54;
  font-size: 18px;
}
.touyannewslist1 ul li{
  padding: 0 10px;
    font-size: 16px;
    color: #333;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px dashed #e5e5e5;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.touyannewslist1 ul li a{
    display: inline-block;
    width: 70%;
}
.touyannewslist1 ul li span{
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
     text-overflow: ellipsis;
}
.touyannewslist ul li{
  padding: 0 10px;
    font-size: 16px;
    color: #333;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px dashed #ccc;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.touyannewslist ul li:hover{
  color: #cd9c54;
}
.touyannewslist ul li a{
    display: inline-block;
    width: 70%;
}
.touyannewslist ul li span{
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
     text-overflow: ellipsis;
}
.touyannewslist img{
  width: 100%;
  height: 120px;
}
.touyan2 img{
  width: 100%;
  height: 120px;
}
.touyan h1{
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}
.touyan h1 span:nth-child(2){
  font-size: 22px;
  color: #cd9c54;
}
.time{
  width: 30%;
  text-align: right;
  display: inline-block;
}
.announcement {
  padding: 30px 0;
  width: 1200px;
  height: 394px;
  margin: 0 auto 0;
  background: #fff;
 
}
/* .announcement:hover{
  box-shadow: 0 0 20px #d9d9d9;
} */
.title {
  font-size: 22px;
  color: #333333;
  margin: 10px 0;
  font-weight: bolder;
  text-align: left !important;
}
.heard {
  width: 100%;
  height: 120px;
  position: relative;
  margin-bottom: 10px;
}
.heard img{
  width: 100%;
  height: 100%;
}
.heard div {
  color: white;
  width: 100%;
  height: 120px;
  position: absolute;
  background: rgba(0, 0, 0, .5);
  top: 0;
  left: 0;
  padding: 0 50px;
  box-sizing: border-box;
}
.heard div p:first-child{
  margin-top: 25px;
  font-size: 22px;
  color: #fffefe;
}
.heard div p:nth-child(2){
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 16px;
  color: #fffefe;
  cursor: pointer;
}
.newslist{
  overflow: hidden;
}
.newslist ul li a{
  display: inline-block;
  width: 70%;
}
.newslist ul li{
  padding: 0 10px;
  font-size: 16px;
  color: #333;
  height: 40px;
  line-height: 40px;
  border-bottom:1px dashed #e5e5e5; 
  display: flex;
  justify-content: space-between;
}
.newslist ul li:hover{
  color: #cd9c54;
}
.newslist ul li span:first-child{
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
   text-overflow: ellipsis;
}
</style>
